home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / presto / presto10.lha / src / makelinks < prev    next >
Text File  |  1991-12-11  |  614b  |  34 lines

  1. #! /bin/sh
  2.  
  3. # This script sets up whole directories of symbolic links
  4. # so that we can build target-specific versions of Presto.
  5.  
  6. usage="<target>"
  7.  
  8. if [ $# -lt 1 ] ; then
  9.     echo "usage: `basename $0` $usage"
  10.     exit 1
  11. fi
  12.  
  13. if [ ! -f Makefile.$1 ] ; then
  14.     echo "no makefile for target \"$1\""
  15.     exit 1
  16. fi
  17.  
  18. here=`pwd`
  19.  
  20. mkdir $1 $1/Base $1/Base_debug > /dev/null 2>&1 
  21.  
  22. # Now go into the source directory, and create all
  23. # the links.
  24.  
  25. cd src
  26. ln -s $here/Makefile.$1 ../$1/Makefile
  27. for file in *.c *.h *.s
  28. do
  29.     ln -s $here/$file ../$1/Base/$file
  30.     ln -s $here/$file ../$1/Base_debug/$file
  31.     echo $file
  32. done
  33. exit 0
  34.